package cn.kgc.tangcco.tcbd1011.no13.user.service.impl;

import java.util.List;

import cn.kgc.tangcco.tcbd1011.no13.base.properties.factory.PropertiesFactory;
import cn.kgc.tangcco.tcbd1011.no13.base.util.Utils;
import cn.kgc.tangcco.tcbd1011.no13.user.dao.UserDao;
import cn.kgc.tangcco.tcbd1011.no13.user.entity.User;
import cn.kgc.tangcco.tcbd1011.no13.user.service.UserService;

public class UserServiceImpl implements UserService {

	private UserDao udao;
	public UserServiceImpl() {
		udao=(UserDao) PropertiesFactory.getInstance(Utils.USERDAO);
	}
	@Override
	public List<User> queryAllUser(User user) {
		return udao.queryAllUser(user);
	}

	@Override
	public User detailUser(User user) {
		return udao.detailUser(user);
	}

	@Override
	public int queryCountUser() {
		return udao.queryCountUser();
	}

	@Override
	public int addUser(User user) {
		return udao.addUser(user);
	}

	@Override
	public int updateUser(User user) {
		return udao.updateUser(user);
	}

	@Override
	public int deleteUser(int pk) {
		return udao.deleteUser(pk);
	}
	@Override
	public User login(User user) {
		return udao.login(user);
	}
	@Override
	public int updatePassord(User user) {
		return udao.updatePassord(user);
	}

}
